﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="doing.aspx.cs" Inherits="lauimini_webform.doing" %>

<%@ Import Namespace="lauimini_webform.BLL" %>
<%@ Import Namespace="lauimini_webform.Data" %>
<%@ Import Namespace="lauimini_webform.Models" %>
<%@ Import Namespace="System.Linq" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="Static/lib/layui-v2.6.3/css/layui.css" rel="stylesheet" />
    <title></title>
    <style type="text/css">
        .a {
            height: 100px;
            margin-top: 50px;
        }

        .height {
            height: 120px;
            position: relative;
        }

        #bottom {
            margin-bottom: 20px;
            position: absolute;
            bottom: 0;
            right: -250px;
            width: 90%;
            height: 30px;
            /* border: 1px solid red; */
        }
    </style>
</head>
<body style="background-color: #f2f2f2;">
    <form id="form1" runat="server">
        <div class="layui-container">
            <div class="layui-row layui-col-space16">
                <%
                    MyDBContext context = new MyDBContext();
                    string userAccount = Session["userAccount"].ToString();
                    List<UserTarget> targets = new UserService().GetStartTarget(userAccount);

                %>
                <%
                    foreach (var item in targets)
                    {
                %>



                <div class="layui-col-md4  a">
                    <div class="layui-card">
                        <div class="layui-card-header"><%=item.Title %></div>
                        <div class="layui-card-body height">
                            <%=item.description %>
                            <div id="bottom">
                                <a href="/Handle/finish.ashx?id=<%=item.id %>" class="layui-btn layui-btn-normal">完成</a> 
                            </div>
                        </div>
                    </div>
                </div>




                <%
                    }
                %>
            </div>


        </div>

    </form>
</body>
</html>
